package com.kingint.web.util.tree;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.kingint.mbg.bas.entity.BasGoods;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class BasGoosTree {


    private Integer id;

    private Integer pid;
    @ApiModelProperty(value = "物品名称")
    private String label;
//    //树型控件属性
//    private Boolean expand=true;
//
//    //
//    private Boolean contextmenu=true;


    @ApiModelProperty(value = "判断是否是物品还是分类：0是物品，1是分类")
    private Integer isgoods;

    @ApiModelProperty(value = "类型（1，酒水，2，布草，3，易碎品），三大类下可以建类，三层")
    private Integer type;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "下级内容")
    private List<BasGoosTree> children=new ArrayList<>();
}
